package com.sc.nft.controller.request;

import com.sc.nft.enums.PayChannelEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class ApplyBindBankCardRequest {

  @ApiModelProperty("银行卡号")
  @NotBlank(message = "银行卡号不能为空")
  private String cardNo;

  //    @ApiModelProperty("银行id")
  //    @NotNull(message = "银行id不能为空")
  //    private Long bankId;

  @ApiModelProperty("姓名")
  @NotBlank(message = "姓名不能为为空")
  private String name;

  @ApiModelProperty("支付渠道")
  private PayChannelEnum channel = PayChannelEnum.SAND;

  @ApiModelProperty("手机号")
  @NotBlank(message = "手机号不能为空")
  @Pattern(regexp = "1[3-9][0-9]\\d{8}", message = "手机号格式不正确")
  private String phoneNo;

  @ApiModelProperty("身份证号")
  @NotBlank(message = "身份证号不能为为空")
  private String certificateNo;
}
